package com.tappytaps.android.hc2010;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;

public class MainActivity extends Activity {
	ImageButton btnTesting;
	ImageButton btnVocabulary;
	//ImageButton btnVocabularyList;
	ImageButton btnSettings;
	
    @Override
	protected void onPause() {
		super.onPause();
	}    
	
	@Override
	protected void onResume() {
		super.onResume();
	}

	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        btnSettings = (ImageButton)findViewById(R.id.btnSettings);
        btnTesting = (ImageButton)findViewById(R.id.btnTesting);
        btnVocabulary = (ImageButton)findViewById(R.id.btnVocabularyList);
        //btnVocabularyList = (ImageButton)findViewById(R.id.btnVocabularyList);
        
        btnSettings.setOnClickListener(new OnClickListener() {
			
			public void onClick(View v) {
				Intent startSettingsActivity = new Intent(MainActivity.this, SettingsActivity.class);
				startActivity(startSettingsActivity);
				
			}
		});
        
        btnTesting.setOnClickListener(new OnClickListener() {
			
			public void onClick(View v) {
				Intent startTestingActivity = new Intent(MainActivity.this, TestingActivity.class);
				startActivity(startTestingActivity);
			}
		});
        
        btnVocabulary.setOnClickListener(new OnClickListener() {
			
			public void onClick(View v) {
				Intent startVocabularyActivity = new Intent(MainActivity.this, VocabularyListActivity.class);
				startActivity(startVocabularyActivity);
			}
		});
        
        /*
        btnVocabularyList.setOnClickListener(new OnClickListener() {
			

			public void onClick(View v) {
				Intent startVocabularyListActivity = new Intent(MainActivity.this, VocabularyListActivity.class);
				startActivity(startVocabularyListActivity);
			}
		});
		*/
    }
}